#!/bin/bash
echo "[+] Cleanup cache"
apt-get clean
apt-get update
rm -fr /public.gpg
echo "Autoremove packages..."
apt-get -y --force-yes autoremove || failure "apt-get autoremove $@ failed, error=$?"
apt-get -y --force-yes autoclear || failure "apt-get autoclean $@ failed, error=$?"
echo "[+] Unmounting dev,proc,sys mountpoints.."
# cupsd bruker /dev/null og må dø for umount
killall cupsd
umount /dev
umount /proc
umount /sys
